import request from '@/utils/request'

// 查询BI活动事务表列表
export function selectSampleApplyByUserId(query) {
  return request({
    url: '/product/OdsSampleTalentApplyReport/selectSampleApplyByUserId',
    method: 'get',
    params: query
  })
}

// 查询BI活动事务表详细
export function getActivity(id) {
  return request({
    url: '/product/activity/' + id,
    method: 'get'
  })
}

// 新增BI活动事务表
export function addActivity(data) {
  return request({
    url: '/product/activity',
    method: 'post',
    data: data
  })
}

// 修改BI活动事务表
export function updateActivity(data) {
  return request({
    url: '/product/activity',
    method: 'put',
    data: data
  })
}

// 删除BI活动事务表
export function delActivity(id) {
  return request({
    url: '/product/activity/' + id,
    method: 'delete'
  })
}
